import java.util.Scanner;

public class DateToolsTest {
    public static void main(String[] args) {
        //2、创建TestDateTools测试类，在main方法中从键盘输入年份，调用DateTools的2个方法测试
        Scanner input = new Scanner(System.in);

        System.out.print("请输入年份：");
        int year = input.nextInt();

        boolean flag = DateTools.isLeapYear(year);
        System.out.println(flag ? "闰年" : "平年");

        int total = DateTools.totalDaysOfYear(year);
        System.out.println("总天数：" + total);

        input.close();
    }
}
